import AbsExpression from "../abstract/AbsExpression";
import MetaData from "../MetaData";

class UnchangedExpression extends AbsExpression {
    public type:"prefix"|"native" = "native";
    /** 预处理 */
    protected data: string | number;

    constructor(value: string | number, metadata?: MetaData,type:"prefix"|"native" = "native") {
        super(metadata)
        this.data = value;
        this.type = type;
    }

    toLocaSql(): string {
        return this.data.toString();
    }
}

export = UnchangedExpression;